package cn.iocoder.yudao.module.javainfo.controller.admin.financialflow.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 资金流水分页 Request VO")
@Data
public class FinancialFlowPageReqVO extends PageParam {

    @Schema(description = "用户ID（关联用户表）", example = "1317")
    private Long userId;

    @Schema(description = "宠物ID（关联宠物表，可为空）", example = "39")
    private Long petId;

    @Schema(description = "订单号（业务唯一标识）")
    private String orderNumber;

    @Schema(description = "金额类型（消费/充值）", example = "2")
    private String amountType;

    @Schema(description = "交易渠道")
    private String transactionChannel;

    @Schema(description = "金额（单位：分）")
    private Long amount;

    @Schema(description = "变动后余额")
    private Long balanceAfter;

    @Schema(description = "业务类型（如：PET_FOOD/MEDICAL/SERVICE）", example = "2")
    private String businessType;

    @Schema(description = "关联业务ID（如订单ID、服务ID等）", example = "8387")
    private Long relatedId;

    @Schema(description = "备注信息", example = "随便")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}